API Documentation
Viewport.h
1 // Viewport.h
3 //
5 
6 namespace nkGraphics
7 {
11  class DLL_GRAPHICS_EXPORT Viewport
12  {
13  public :
14 
19  Viewport () ;
23  virtual ~Viewport () ;
24 
25  // Getters
29  virtual float getWidth () const = 0 ;
33  virtual float getHeight () const = 0 ;
37  virtual float getMinDepth () const = 0 ;
41  virtual float getMaxDepth () const = 0 ;
45  virtual float getTopLeftX () const = 0 ;
49  virtual float getTopLeftY () const = 0 ;
53  virtual nkMemory::StringView getName () const ;
57  virtual bool getDirtyViewport () const ;
58 
59  // Setters
65  virtual void setWidth (float width) = 0 ;
71  virtual void setHeight (float height) = 0 ;
77  virtual void setMinDepth (float value) = 0 ;
83  virtual void setMaxDepth (float value) = 0 ;
89  virtual void setTopLeftX (float value) = 0 ;
95  virtual void setTopLeftY (float value) = 0 ;
101  virtual void setName (const nkMemory::StringView& name) ;
107  virtual void setDirtyViewport (bool value) ;
108  } ;
109 }
nkGraphics::Viewport::getDirtyViewport
virtual bool getDirtyViewport() const
nkGraphics::Viewport::getTopLeftY
virtual float getTopLeftY() const =0
nkGraphics::Viewport::getMaxDepth
virtual float getMaxDepth() const =0
nkGraphics::Viewport::getMinDepth
virtual float getMinDepth() const =0
nkGraphics::Viewport
Holds all the information needed about a viewport.
Definition: Viewport.h:12
nkGraphics::Viewport::setDirtyViewport
virtual void setDirtyViewport(bool value)
nkGraphics::Viewport::getHeight
virtual float getHeight() const =0
nkGraphics::Viewport::setMinDepth
virtual void setMinDepth(float value)=0
nkGraphics::Viewport::setMaxDepth
virtual void setMaxDepth(float value)=0
nkGraphics::Viewport::setName
virtual void setName(const nkMemory::StringView &name)
nkGraphics::Viewport::setWidth
virtual void setWidth(float width)=0
nkGraphics::Viewport::~Viewport
virtual ~Viewport()
nkGraphics::Viewport::getName
virtual nkMemory::StringView getName() const
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics::Viewport::Viewport
Viewport()
nkGraphics::Viewport::getWidth
virtual float getWidth() const =0
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::Viewport::getTopLeftX
virtual float getTopLeftX() const =0
nkGraphics::Viewport::setTopLeftY
virtual void setTopLeftY(float value)=0
nkGraphics::Viewport::setTopLeftX
virtual void setTopLeftX(float value)=0
nkGraphics::Viewport::setHeight
virtual void setHeight(float height)=0